﻿jQuery(document).ready(function () {

    $('#frmmedical').submit(function () {
        $('#msg-frMedical').html("");
        App.blockUI($('#frmmedical'), false);
        $.ajax({
            type: "POST",
            url: "/Personal/MedicalQuestionare",
            data: $(this).serialize(),
            success: function (data) {
                $('#msg-frMedical').html(data);
                App.unblockUI($('#frmmedical'));
            },
            error: function (xhr, ajaxOptions, thrownError) {
                $('#msg-frMedical').html("Load failed");
                App.unblockUI($('#frmmedical'));
            }
        });
        return false;
    });
});